#include "SurfacesHandler.h"
#include "DeviceNormal.h"
#include "DeviceVertice.h"
#include "custom_types.h"

class LabelEquivalenceSeg;

class Frame{
public:

	Frame(int s);
	~Frame();
	void setCameraPos(cameraPose* pos);
	void setVertices(float3* in);
	void setNormal(float3* in);
	void segmentPlanarStructures(LabelEquivalenceSeg* seg);
	void integratePlanarStructures();
	  


private:
	SurfacesHandler surfaces;
	SurfacesHandler surfaces_global;
	DeviceNormal dn;
	DeviceVertice dv;
	int size;
	cameraPose pos;

	bool* segmentMap;
	int* host_label;
	float3* host_vertice;
};